package com.example.xyxwebbackend001.model.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("article_image")
public class ArticleImage {
    public enum ImageType {
        COVER("cover"),
        CONTENT("content");

        @EnumValue
        private final String value;

        ImageType(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }

    private Integer imageId;
    private Integer artId;
    private String imagePath;
    private ImageType imageType;
    private String altText;
    private String description;
}
